package com.myjoje.jpa;

import com.myjoje.bean.system.RoleBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface RoleJpa extends JpaRepository<RoleBean, String>, JpaSpecificationExecutor<RoleBean> {
    Long countByName(String name);

    Long countByCode(String code);

    RoleBean findByName(String name);

    RoleBean findByCode(String code);
}
